",$com); $img1com = $rec['img1com']; $img2com = $rec['img2com']; $img3com = $rec['img3com']; } $u1 = "${ownerid}/"."${Rdata}/"."image1".".jpg"; $u2 = "${ownerid}/"."${Rdata}/"."image2".".jpg"; $u3 = "${ownerid}/"."${Rdata}/"."image3".".jpg"; $img1flg=""; $img2flg=""; $img3flg=""; if(file_exists("$u1")){ $img1flg=1; $percent=0; //画像サイズ自動変更処理 list($width, $height) = getimagesize("$u1"); if($width > $height){ if($width > 180){ $percent = 180 / $width; } }elseif($width < $height){ if($height > 135){ $percent = 135 / $height; } }else{ if($width > 180){ $percent = 180 / $width; } if($height > 135){ $percent = 135 / $height; } } if($percent > 0){ $new_width1 = $width * $percent; $new_height1 = $height * $percent; }else{ $new_width1 = $width; $new_height1 = $height; } } if(file_exists("$u2")){ $img2flg=1; $percent=0; //画像サイズ自動変更処理 list($width, $height) = getimagesize("$u2"); if($width > $height){ if($width > 180){ $percent = 180 / $width; } }elseif($width < $height){ if($height > 135){ $percent = 135 / $height; } }else{ if($width > 180){ $percent = 180 / $width; } if($height > 135){ $percent = 135 / $height; } } if($percent > 0){ $new_width2 = $width * $percent; $new_height2 = $height * $percent; }else{ $new_width2 = $width; $new_height2 = $height; } } if(file_exists("$u3")){ $img3flg=1; $percent=0; //画像サイズ自動変更処理 list($width, $height) = getimagesize("$u3"); if($width > $height){ if($width > 180){ $percent = 180 / $width; } }elseif($width < $height){ if($height > 135){ $percent = 135 / $height; } }else{ if($width > 180){ $percent = 180 / $width; } if($height > 135){ $percent = 135 / $height; } } if($percent > 0){ $new_width3 = $width * $percent; $new_height3 = $height * $percent; }else{ $new_width3 = $width; $new_height3 = $height; } } if(isset($_POST['Rsubmit'])){//データベース削除処理 $artnum=$_POST['artnum']; $sql=""; $sql.="select * from album where artnum = '$artnum' "; $mq = mysql_query($sql,$conn); if($rec = mysql_fetch_array($mq)){ $Rdata = _ss(_hs($rec['date'])); } if(!isset($Rdata)){ if(_S == 1){ header("Location: http://www.jhayashida.co.jp/prime/delmp3.php?id=$id"); }elseif(_S == 0){ header("Location: http://localhost/public/prime/delmp3.php"); } exit; } $u = "${id}/"."${Rdata}"; $u1 = "${id}/"."${Rdata}/"."image1".".jpg"; $u2 = "${id}/"."${Rdata}/"."image2".".jpg"; $u3 = "${id}/"."${Rdata}/"."image3".".jpg"; if(file_exists("$u1")){ unlink("$u1"); } if(file_exists("$u2")){ unlink("$u2"); } if(file_exists("$u3")){ unlink("$u3"); } if(file_exists("$u")){ rmdir("$u"); } $sql = ""; $sql.= "DELETE FROM album WHERE artnum='$artnum'"; mysql_query($sql,$conn); $fda = 0; $fdss = 17-$fda; $sqllist=""; $sqllist.="select `id` , `title` , `artnum` from `album` where `ex` = '1' "; $sqllist.="order by `date` desc "; $sqllist.= "limit 0,$fdss "; $lst=""; $mqlist = mysql_query($sqllist,$conn); while($rec = mysql_fetch_array($mqlist)){ $artnumdd=_hs($rec['artnum']); $titledd=_hs($rec['title']); $iddd=_hs($rec['id']); $numnumdd=0; $sqlcomnum=""; $sqlcomnum.="select count(artnum) as numnum from comment where artnum = '$artnumdd' "; //echo "$sqlcomnum"."
"; $mqlcomnum = mysql_query($sqlcomnum,$conn); while($recnum = mysql_fetch_array($mqlcomnum)){ $numnumdd=$recnum['numnum']; } $lst.="
●${titledd}(${numnumdd})
"; } //ファイルを開く $fp=@fopen("alllist/toplist.dat","w") or die("ファイルのオープンに失敗しました"); //あいうえおとファイルに書く fputs($fp,"$lst"); //ファイルを閉じる fclose($fp); $lst = ""; $maxrow = 30; $pos = 0; $sqllist=""; $sqllist.="select artnum,title,date,Odate,temp,ex from album where id = '$id' "; $sqllist.="order by date desc"; $mqlist = mysql_query($sqllist,$conn); $fnum = mysql_num_rows($mqlist); if($fnum > 0){ if($fnum > ($pos * $maxrow) and (($pos + 1) * $maxrow) < $fnum){ if(!$flg){ $next = ""."次のリスト".""; }else{ $next = ""."次のリスト".""; } }else{ $next = "次のリスト"; } if($pos > 0 ){ if(!$flg){ $before = ""."前のリスト".""; }else{ $before = ""."前のリスト".""; } }else{ $before = "前のリスト"; } $page = floor($fnum / $maxrow); //$page = floor($page); } $sqllist.=" limit ".($pos * $maxrow).",$maxrow"; $mqlist = mysql_query($sqllist,$conn); while($rec = mysql_fetch_array($mqlist)){ $limitflg=0; $artnum=_hs($rec['artnum']); $title=_hs($rec['title']); $date=_hs($rec['date']); $Odate = _hs($rec['Odate']); $temp = _hs($rec['temp']); $ex = _hs($rec['ex']); if($ex==2 and $_SESSION['oid']==""){ $o_id = $_SESSION['oid']; $sql=""; $sql.="select ownerid,limitid from limitation where ownerid = '$id' and limitid = '$o_id' "; $mql = mysql_query($sql,$conn); if($rec2 = mysql_fetch_array($mql)){ $limitflg = 1; } } $comnum=0; $sql=""; $sql.="select artnum,comment_serial from comment where artnum = '$artnum' "; $mql = mysql_query($sql,$conn); $comnum = mysql_num_rows($mql); if($limitflg != 1){ $nen = substr($date,0,4); $getu = substr($date,4,2); $niti = substr($date,6,2); $ji = substr($date,8,2); $hun = substr($date,10,2); $byou = substr($date,12,2); $lst .= "${nen}年${getu}月${niti}日${ji}時${hun}分${byou}秒"; if($Odate!=""){$lst .="
記事の日付:$Odate";} $lst .= ""; if($temp=="日記"){$lst .="${title}(${comnum})"; }elseif($temp=="料理"){$lst .="${title}($comnum)"; }elseif($temp=="ダイエット"){$lst .="${title}($comnum)
体重グラフを確認する"; }elseif($temp=="園芸"){$lst .="${title}(${comnum})"; }elseif($temp=="旅行記録"){$lst .="${title}(${comnum})"; }elseif($temp=="スキー・スノーボード"){$lst .="${title}(${comnum})"; }elseif($temp=="フィッシング"){$lst .="${title}(${comnum})"; }elseif($temp=="お手紙"){$lst .="${title}(${comnum})"; }else{$lst .="${title}(${comnum})";} $lst .="記事印刷"; if($temp=="日記"){$lst .="修正する"; }elseif($temp=="料理"){$lst .="修正する"; }elseif($temp=="ダイエット"){$lst .="修正する"; }elseif($temp=="園芸"){$lst .="修正する"; }elseif($temp=="旅行記録"){$lst .="修正する"; }elseif($temp=="スキー・スノーボード"){$lst .="修正する"; }elseif($temp=="フィッシング"){$lst .="修正する"; }elseif($temp=="お手紙"){$lst .="修正する"; }else{$lst .="修正する";} $lst.=" "; if($temp=="日記"){$lst .="削除する"; }elseif($temp=="料理"){$lst .="削除する"; }elseif($temp=="ダイエット"){$lst .="削除する"; }elseif($temp=="園芸"){$lst .="削除する"; }elseif($temp=="旅行記録"){$lst .="削除する"; }elseif($temp=="スキー・スノーボード"){$lst .="削除する"; }elseif($temp=="フィッシング"){$lst .="削除する"; }elseif($temp=="お手紙"){$lst .="削除する"; }else{$lst .="削除する";} $lst.=" "; } } $lst.=""; $lst.="
${before}  "; for($i=0;$page >= $i;$i++){ $pagenum=$i+1; $lst.= "$pagenum  "; } $lst.="  ${next}
"; $fp=@fopen("${id}/bloglist.dat","w") or die("ファイルのオープンに失敗しました"); //あいうえおとファイルに書く fputs($fp,"$lst"); //ファイルを閉じる fclose($fp); mysql_close($conn); if(_S == 1){ header("Location: http://www.jhayashida.co.jp/prime/delmp2.php?id=$id"); }elseif(_S == 0){ header("Location: http://localhost/public/prime/delmp2.php"); } exit; } ?> 12){ //月が13以上になったときの処理 $month -=12; $year += 1; } break; case 2 ; $year += 1; break; case 3 ; $year += 10; break; case 4 ; $year += 100; break; } setcookie("year",$year,time()+60*60); setcookie("month",$month,time()+60*60); mb_language("Ja") ; mb_internal_encoding("JIS") ; header('content-type: text/html; charset =' ._CHARSET); ?> マウスだけで簡単に作れる ブログワン

<<    年月    >>
SUN MON TUE WED THU FRI SAT
▼  さんの 秒頃の記事
カテゴリ: テンプレート:
" border=0 width= height=> " border=0 width= height=> " border=0 width= height=>
この日記を削除しますか?。宜しければ、削除ボタンを押してください。
> >